<?
$page_title="Sevadhari - Registration List";
$mindex=3;
$profile_menu=1;
?>
<?include("includes/header.php") ?>

<?
$query = "SELECT * FROM bkitc_profiles where rec_status=1 and dob!='0000-00-00' and year(dob)>=1920 and reg_seva=1 order by seva_reg_on desc";
$memberInfo = qry_data($query);
?>
<div class="break"></div>
<div class="fleft">

</div>
<table   width="100%" class="table_panel" cellspacing="0" cellpadding="4">
<tr>

<th width="1">SNo</th>
<th>Name</th>
<th width="1">M/F</th>
<th>Email/Mobile</th>
<th>Seva Interest</th>
<th>Seva Speciality</th>
<th >Registered On</th>
<th>View</th>
</tr>
<? foreach($memberInfo as $i=>$member) {?>

<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?> >

<td><?=$i+1;?></td>
<td><?=formatMemberCode($member["registrant_id"]);?><br/><?=$member["full_name"];?></td>
<td><?if($member["gender"]=="1") echo "M"; else echo "F";?></td>
<td><?=$member["email_id"];?><br/><?=$member["mobile_no"];?></td>
<td><?=$member["reg_seva_interest"];?></td>
<td><?=$member["reg_speciality_seva"];?></td>

<td><?=$member["seva_reg_on"]?></td>

<td>

<a href="edit_member.php?mode=edit&mid=<?=$member["registrant_id"];?>">View</a> 
</td>
</tr>

<? } ?>
</table>
	

<?include("includes/footer.php") ?>